home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / meta_lan < prev    next >
Text File  |  1994-03-17  |  38KB  |  936 lines

  1. Newsgroups: comp.lang.ml,comp.answers,news.answers
  2. Path: bloom-beacon.mit.edu!hookup!news.moneng.mei.com!howland.reston.ans.net!europa.eng.gtefsd.com!fs7.ece.cmu.edu!honeydew.srv.cs.cmu.edu!jgmorris
  3. From: jgmorris@cs.cmu.edu (Greg Morrisett)
  4. Subject: Comp.Lang.ML FAQ [Monthly Posting]
  5. Message-ID: <CMtJEn.Fw6.3@cs.cmu.edu>
  6. Followup-To: poster
  7. Summary: This posting contains a list of Frequently asked questions (and their
  8.          answers) about the family of ML programming languages, including 
  9.          Standard ML, CAML, Lazy-ML, and CAML-Light.  This post should be read 
  10.          before asking a question on the comp.lang.ml newsgroup.
  11. Originator: jgmorris@VACHE.VENARI.CS.CMU.EDU
  12. Sender: jgmorris@cs.cmu.edu
  13. Nntp-Posting-Host: vache.venari.cs.cmu.edu
  14. Reply-To: comp-lang-ml-request@cs.cmu.edu
  15. Organization: School of Computer Science, Carnegie Mellon
  16. Date: Thu, 17 Mar 1994 17:03:58 GMT
  17. Approved: comp-lang-ml@cs.cmu.edu
  18. Expires: Sun, 17 Apr 1994 00:00:00 GMT
  19. Lines: 914
  20. Xref: bloom-beacon.mit.edu comp.lang.ml:404 comp.answers:4201 news.answers:16492
  21.  
  22. Archive-name: meta-lang-faq
  23. Last-modified: 1994/01/11
  24.  
  25.  
  26.          COMP.LANG.ML Frequently Asked Questions and Answers 
  27.        (compiled by Dave Berry and Greg Morrisett)
  28.  
  29. Please send corrections, additions, or comments regarding this list to
  30. comp-lang-ml-request@cs.cmu.edu.  
  31.  
  32. Changes since last month:
  33. ------------------------
  34. 1. Added info on emacs mode
  35. 2. The NJ library is now (and has been) version 0.2
  36.  
  37. Contents:
  38. ---------
  39.     1. What is ML?
  40.     2. Where is ML discussed?
  41.         a. Comp.Lang.ML
  42.         b. SML-LIST
  43.         c. CAML-LIST
  44.     3. What implementations of ML are available?
  45.         a. quick summary (by machine/OS)
  46.         b. Poly/ML
  47.         c. Standard ML of New Jersey
  48.         d. Poplog ML
  49.         e. ANU ML
  50.         f. MicroML
  51.         g. sml2c
  52.         h. Caml Light
  53.         i. ML Kit Compiler
  54.     4. Unsupported SML/NJ Ports
  55.         a. MS-DOS/Windows
  56.         b. Linux
  57.         c. OS/2
  58.         5. Where can I find documentation on ML?
  59.         a. The Definition
  60.         b. Textbooks
  61.     6. Where can I find ML library code?
  62.     7. Theorem Provers and ML
  63.         8. Miscellaneous Questions
  64.         a. How do I write the Y combinator in SML?
  65.         b. Where can I find an X-windows interface to SML?
  66.         c. How do I call a C function from SML/NJ?
  67.         d. How do I fix the emacs mode to work with
  68.             emacs 19?
  69.  
  70. --------------------------------------------------------------------------
  71. 1. What is ML?
  72.  
  73.   ML (which stands for Meta-Language) is a family of advanced programming 
  74.   languages with [usually] functional control structures, strict semantics, 
  75.   a strict polymorphic type system, and parametrized modules.  It includes 
  76.   Standard ML, Lazy ML, CAML, CAML Light, and various research languages.  
  77.   Implementations are available on many platforms, including PCs, mainframes,
  78.   most models of workstation, multi-processors and supercomputers.  ML has 
  79.   many thousands of users, is taught at many universities (and is the first
  80.   programming language taught at some).
  81.  
  82. --------------------------------------------------------------------------
  83. 2. Where is ML discussed?
  84.  
  85. COMP.LANG.ML
  86. ------------
  87. comp.lang.ml is a moderated usenet newsgroup.  The topics for discussion
  88. include but are not limited to:
  89.  
  90.    * general ML enquiries or discussion 
  91.    * general interpretation of the definition of Standard ML 
  92.    * applications and use of ML 
  93.    * announcements of general interest (e.g. compiler releases)
  94.    * discussion of semantics including sematics of extensions based on ML
  95.    * discussion about library structure and content
  96.    * tool development
  97.    * comparison/contrast with other languages
  98.    * implementation issues, techniques and algorithms including extensions
  99.        based on ML
  100.  
  101. Requests should be sent to:
  102.  
  103.     comp-lang-ml@cs.cmu.edu
  104.  
  105. Administrative mail should be sent to:
  106.  
  107.     comp-lang-ml-request@cs.cmu.edu
  108.  
  109. Messages sent to the newsgroup are archived at CMU.  The archives can be
  110. retrieved by anonymous ftp from internet sites.  Messages are archived
  111. on a year-to-year basis.  Previous years' messages are compressed using
  112. the Unix "compress" command.  The current year's messages are not
  113. compressed.
  114.  
  115.     ftp pop.cs.cmu.edu
  116.     username: anonymous
  117.     password: <username>@<site>
  118.     binary
  119.     cd /usr/jgmorris/sml-archive
  120.     get sml-archive.<year>.Z
  121.     quit
  122.     zcat sml-archive.<year>.Z
  123.  
  124. (Pop's IP address is 128.2.205.205).
  125.  
  126. Individual messages can also be accessed in the directories
  127. /usr/jgmorris/mh-sml-archive/<year>-sml.
  128.  
  129. SML-LIST
  130. --------
  131. The SML-LIST is a mailing list that exists for people who cannot
  132. (or do not want to) read the Usenet COMP.LANG.ML newsgroup. 
  133. Messages are crossposted from COMP.LANG.ML to the SML-LIST and
  134. vice-versa.  You should ask to join the SML-LIST _only if_ you cannot
  135. (or do not want to) read the Usenet COMP.LANG.ML newsgroup.
  136.  
  137. To send a message to the SML-LIST distribution, address it to:
  138.  
  139.     sml-list@cs.cmu.edu
  140.  
  141. (sites not connected to the Internet may need additional routing.)
  142.  
  143. Administrative mail such as requests to add or remove names from the
  144. distribution list should be addressed to 
  145.  
  146.     sml-list-request@cs.cmu.edu
  147.  
  148.  
  149. CAML-LIST
  150. ---------
  151. The Caml language, a dialect of ML, is discussed on the Caml mailing
  152. list.  To send mail to the Caml mailing list, address it to:
  153.  
  154.     caml-list@margaux.inria.fr
  155.  
  156. Administrative mail should be addressed to:
  157.  
  158.     caml-list-request@margaux.inria.fr
  159.  
  160. ALT.LANG.ML
  161. -----------
  162. Another venue for ML-related discussion is the Netnews group
  163. alt.lang.ml, though this has seen relatively little traffic.  
  164. --------------------------------------------------------------------------
  165. 3. What implementations of ML are available and where can I find them?
  166.    (Note, this information may be out of date.)
  167.  
  168. Quick Summary:
  169.  
  170. System    full SML?  contact                        Platforms
  171. ------    ---------  ------------                 ------------------------------
  172. Poly/ML       yes       ahl@ahl.co.uk                Unix/Sparc,Sun3 (others soon)
  173.  
  174. SML/NJ       yes     dbm@resarch.att.com             Unix/Sparc,Mips,Vax,680x0,
  175.            ftp research.att.com             I386/486,HPPA,RS/6000,
  176.                          MacOS/MacII
  177.            ftp.rz.uni-karlsruhe.de     Linux (including binaries)
  178.            ftp-os2.nmsu.edu         OS/2  (including binearies)
  179.            
  180.  
  181. PoplogML   yes       isl@integ.uucp,             VMS/Vax, Unix/Vax,Suns,Sparcs,
  182.            alim@uk.ac.sussex.cogs,       Solbourne, Sequent Symmetry,
  183.            pop@cs.umass.edu             HP M680?0, Apollo, AUX/MacII
  184.  
  185. Edinburgh  core       ftp ftp.dcs.ed.ac.uk             32-bit machines (bytecode)
  186.            ftp ftp.informatik.uni-muenchen.de PC 80386SX+
  187.  
  188. ANU ML       core    mcn@anucsd.anu.edu.au     Sun-3, Ultrix/Vax, Pyramid,
  189.                          AUX/MacII
  190.  
  191. MicroML       core    olof or mahler @cs.umu.se     PC 80286+ (bytecode)
  192.            ftp ftp.cs.umu.se
  193.  
  194. sml2c       yes       dtarditi@cs.cmu.edu         32-bit Unix machines (C code)
  195.            ftp dravido.soar.cs.cmu.edu
  196.  
  197. Caml Light coreish caml-light@margaux.inria.fr     32-bit Unix, Mac, PC 8086,
  198.            ftp ftp.inria.fr         PC 80386 (bytecode)
  199.  
  200. Kit       yes       ftp ftp.diku.dk         (Requires another SML compiler
  201.            ftp ftp.dcs.ed.ac.uk          to build binaries)
  202.  
  203. Details:
  204.                
  205. Poly/ML:
  206.     Poly/ML produces native code for SPARC and Sun3
  207. systems.  Poly/ML uses a persistent store and supports arbitrary precision
  208. integer arithmetic.  It comes with a make system, an X11/Xlib interface,
  209. and a OSF/Motif interface.  Non-standard extensions include concurrent 
  210. processes and an associated message-passing scheme.
  211.     Poly/ML is distributed by Abstract Hardware Ltd. (ahl@ahl.co.uk).
  212. The price of the Motif edition is 1250 pounds for an academic site 
  213. licence or 3300 pounds per machine for commercial users.  Multiple
  214. and site licences are available by negotiation.
  215.  
  216. Standard ML of New Jersey:
  217.         Standard ML of New Jersey was developed jointly at AT&T Bell
  218. Laboratories and Princeton University.  It is an open system (source
  219. code is freely available) implemented in Standard ML.  Version 0.93 of
  220. SML/NJ generates native code for 68020, SPARC, and MIPS (big and
  221. little endian), I386/486, HPPA(HP9000/700), and RS/6000 architectures
  222. under various versions of the Unix operating system (SunOS, Ultrix,
  223. Mach, Irix, Riscos, HPUX, AIX, AUX, etc.), and on the MacIntosh OS
  224. (Mac II, System 7.x, min 12MB ram).  Version 0.75 runs on the Vax
  225. under Ultrix, BSD, and Mach.
  226.     SML/NJ comes with a source-level debugger, profiler, gnu emacs
  227. interface, ML implementations of LEX, YACC, and Twig, separate compilation
  228. facilities, Concurrent ML, the eXene X Window library, and the SML/NJ
  229. library.  It runs interactively and can produce stand-alone executable
  230. applications.
  231.     Non-standard extensions include typed first-class continuations,
  232. Unix signal handling, and higher-order functors.
  233.         SML/NJ is copyrighted by AT&T but the system, including source
  234. code, is freely distributable.  It is available by anonymous ftp from
  235. research.att.com (192.20.225.2) and princeton.edu (128.112.128.1).
  236. Login as "anonymous" with your user name as password.  Put ftp in
  237. binary mode and copy the (compressed tar) files you need from the
  238. directory dist/ml (pub/ml on princeton.edu).  You only need the 93.mo.*.tar.Z 
  239. files for your machine in addition to the 93.src.tar.Z.  (You might also 
  240. want the 93.release-notes.[ps|txt], 93.tools.tar.Z, 93.doc.tar.Z, and 
  241. smlnj-lib-0.2.tar.Z files.)  Alternatively mail dbm@research.att.com.  
  242. In the UK, SML/NJ is available from the LFCS.
  243.     There are unsupported ports of SML/NJ to other platforms, including
  244. Linux, FreeBSD, OS/2, and Microsoft Windows 3.1.  See the "Unsupported SML/NJ 
  245. Ports" section for details.
  246.  
  247. Poplog ML:
  248.         Standard ML is supported as part of the Poplog system, which also
  249. provides incremental compilers for Pop-11, Common Lisp and Prolog in a
  250. common environment with shared data-structures, so that mixed language
  251. programming is possible. The integrated editor and HELP mechanism
  252. support online teaching aids.  Poplog comes with an X Windows interface.
  253.     Poplog is available for VAX+VMS, VAX+Ultrix, VAX+Bsd 4.2/3,
  254. Sun-2,3,4, Sun386i, SPARCstation, Solbourne, Sequent Symmetry (with Dynix),
  255. HP M680?0+Unix workstations and Apollo+Unix. Versions for MAC-II with A/UX,
  256. DECstation 3100 and MIPS will be available shortly.
  257.         UK educational users should contact the School of Cognitive and
  258. Computing Sciences, University of Sussex (alim@uk.ac.sussex.cogs).  People in
  259. the USA or Canada should contact Computable Functions Inc. (pop@cs.umass.edu).
  260. All others should contact Integral Solutions Ltd. (isl@integ.uucp).  UK
  261. academic prices start at 600 pounds.  Non-UK academic prices start at 1125
  262. pounds.  Commercial prices start around 2,000 pounds for an ML-only version
  263. or 7,500 pounds for the full Poplog system.
  264.  
  265. Edinburgh ML 4.0:
  266.     Edinburgh ML 4.0 is an implementation of the core language (without
  267. the module system).  It uses a bytecode interpreter, which is written in C
  268. and runs on any machine with 32 bit words, a continuous address space and
  269. a correct C compiler.  Ports to various 16 bit machines are underway.  The
  270. bytecode interpreter can be compiled with switches to avoid the buggy parts
  271. of the C compilers that we've used it with (as far as I know none of them
  272. worked correctly).  
  273.     Edinburgh ML 4.0 is available from the LFCS.  
  274.     A port to PCs with 386SX processors or better is available by FTP
  275. from ftp.informatik.uni-muenchen.de, in the file pub/sml/ibmpc/edml3864.exe.
  276. Contact Joern Erbguth (jnerbgut@informatik.uni-erlangen.de) for more 
  277. information. 
  278.     Some information from Felix von Normann follows:
  279.  
  280.     There are other Edinburgh (PC-)ports of ML including an OS/2 2.x, 
  281.     an OS/2 PM and a Dos version. A new version has just been made 
  282.     ready and is available at forwiss.uni-passau.de (132.231.1.10) in
  283.     pub/ibmpc/os2/lang/sml/sml04.zip. It is about 360K long (short?).
  284.  
  285.     All 3 programs have in common (all in one .zip):
  286.        - true 32 Bit applications
  287.        - easy to install, easy to use
  288.        - As far as I know they work stable
  289.          (except the DOS version working as a Windows window
  290.          [you can use it with Windows but it crashes on *exit*])
  291.        - they don't require expensive hardware 
  292.          (and they don't need a co-processor)
  293.  
  294.     To be more specific:
  295.           OS/2 PM               OS/2                DOS    
  296.     OS    >= OS/2 2.0+ServPak   >= OS/2 2.0        >= DOS 5.0
  297.     Edit  PM, GUI,              Standard            command history
  298.           integrated editor
  299.           (cut&paste)
  300.     HW    >= 386/33, 8MB        >= 386/33 4MB       >= 386sx, 2MB
  301.           lots of MB and fast
  302.           graphics ad. recommened
  303.     Help  online                online
  304.           (+ML ref. in german)
  305.  
  306. ANU ML
  307.     ANU ML is descended from Cardelli's ML Pose 3.  It implements the
  308. core language of the standard and an old version of modules.  It incrementally
  309. compiles to native code on Sun-3, Vax/Ultrix, Pyramid and MacII/AUX.  (It
  310. is intended to standardize modules and do the port to Sun-4 in the near
  311. future.)
  312.     ANU ML has a program development system with strong support for
  313. debugging (tracing, automatic retesting etc.) and has been extended with
  314. a built-in type complex.  
  315.     ANU ML is still considered to be in beta release since exceptions
  316. have been standardized quite recently.  It is available from Malcolm Newey,
  317. CS Dept., Australian National University (mcn@anucsd.anu.edu.au) by
  318. arrangement; soon to be available by ftp.
  319.  
  320. MicroML
  321.     MicroML is an interpreter for a subset of SML that runs on IBM PCs,
  322. from the Institute of Information Processing at the University of Umea in
  323. Sweden.  It implements the core language except for records.  A 80286
  324. processor or better is recommended.
  325.     MicroML is available as an alpha-release by anonymous ftp from
  326. ftp.cs.umu.se /pub/umlexe01.uue.  There are several known bugs in the current
  327. version.  For more information contact Olof Johansson (olof@cs.umu.se) or
  328. Roger Mahler (mahler@cs.umu.se).
  329.  
  330. sml2c
  331.     sml2c is a Standard ML to C compiler.  It is based on SML/NJ and
  332. shares its front-end and most of the runtime system. sml2c is a batch
  333. compiler and compiles only module-level declarations.  It does not support
  334. SML/NJ style debugging and profiling.
  335.     sml2c is easily portable and has been ported to IBM RT, 
  336. Decstation 3100, Decstation 5000, Omron Luna 88k, sun-3, sun-4 and a 
  337. 486-based machine (running Mach).  The generated code is highly portable 
  338. and makes very few assumptions about the target machine or the C compilers 
  339. available on the target machine. The runtime system, which it shares with 
  340. the SML/NJ has several machine and operating system dependencies.  sml2c 
  341. has eliminated some of these dependencies by using portable schemes for 
  342. garbage collection and for freezing and restarting programs.
  343.     sml2c is available by anonymous ftp from dravido.soar.cs.cmu.edu
  344. (128.2.220.26). Log in as anonymous, send username@node as password.  The
  345. compressed tar file sml2c.tar.Z can be found in /usr/nemo/sml2c.  The local
  346. ftp software will allow you to change directory only to /usr/nemo/sml2c.
  347. The size of the tar file is about 3 Meg. The size of the uncompressed
  348. distribution is about 12 Meg.
  349.  
  350. Caml Light
  351.  
  352. Caml Light is a portable, bytecode interpreter for a subset of CAML, 
  353. a dialect of ML.  Some features of Caml Light include separate compilation,
  354. streams and stream parsers, ability to link to C code, and tools for
  355. building libraries and toplevel systems.  The PC versions provide
  356. line editing and the 80386 port is VCPI-compliant.
  357.  
  358. The Unix version should work on any modern workstation. We have tested
  359. it on Sun 3 and 4, DecStations, HP 9000/700 and 9000/350, IBM RS/6000,
  360. SGI Indigo, Sony News, Next cubes, and some more exotic machines.
  361. The Macintosh version is now a standalone Macintosh application, and
  362. no longer requires the Macintosh Programmer's Workshop. (Well, at
  363. least for the toplevel environment; the batch compilers still run
  364. under MPW.) The application provides some graphics primitives.
  365. The PC version still comes in two flavors, one that run on any PC, but
  366. is severely limited by the 640K barrier, and one that run on 80386 or
  367. 80486 PC's in 32 bit protected mode to circumvent these limitations.
  368. Both versions now provide the same graphics primitives as the
  369. Macintosh version.  Ports to OS/2 and to the Amiga are in progress.
  370.  
  371. The version 0.6 of the Caml Light system has been released, and is
  372. available by anonymous FTP from:
  373.  
  374.         host:      ftp.inria.fr (192.93.2.54)
  375.  
  376.         directory: lang/caml-light
  377.  
  378.     Summary of the files:
  379.  
  380.         README                  More detailed summary
  381.         cl6unix.tar.Z           Unix version
  382.         cl6macbin.sea.hqx       Binaries for the Macintosh version
  383.         cl6macsrc.sea.hqx       Source code for the Macintosh version
  384.         cl6pc386bin.zip         Binaries for the 80386 PC version
  385.         cl6pc386src.zip         Source code for the 80386 PC version
  386.         cl6pc86bin.zip          Binaries for the 8086 PC version
  387.         cl6pc86src.zip          Source code for the 8086 PC version
  388.         cl6refman.*             Reference manual, in various formats
  389.         cl6tutorial.*           Tutorial, in various formats
  390.  
  391. This release is mostly a bug-fix release and should be compatible with
  392. Caml Light 0.5. The main changes are:
  393.  
  394. * Better handling of type abbreviations.
  395.  
  396. * Debugging mode (option -g to camlc and camllight) to get access
  397.   to the internals of module implementations.
  398.  
  399. * New library modules:
  400.     genlex    generic lexical analyser
  401.     set       applicative sets over ordered types
  402.     map       applicative maps over ordered types
  403.     baltree   balanced binary trees over ordered types
  404.  
  405. * "compile" command at toplevel (especially useful in the Macintosh version).
  406.  
  407. * New contributed libraries and tools:
  408.     camlmode    Emacs editing mode for Caml Light
  409.     mletags     Indexing of Caml Light source files for use with Emacs "tags"
  410.     search_isos Search libraries by types (modulo isomorphisms)
  411.     libgraph    X implementation of the portable graphics library
  412.     libnum      Arbitrary-precision arithmetic
  413.     libstr      String operations, regular expressions
  414.  
  415. * The 80386 PC version is now DPMI-compliant, hence it can run under Windows
  416.   (in text mode inside a DOS windows and with no graphics, though).
  417.  
  418. * More examples, including those from the book "Le langage Caml".
  419.  
  420. General questions and comments of interest to the Caml community
  421. should be sent to caml-list@margaux.inria.fr, the Caml mailing list.
  422. (see question 3 above for details.)
  423.  
  424. ML Kit Compiler
  425.  
  426.   The ML Kit is a straight translation of the Definition of Standard
  427. ML into a collection of Standard ML modules.  For example, every
  428. inference rule in the Definition is translated into a small piece of
  429. Standard ML code which implements it. The translation has been done
  430. with as little originality as possible - even variable conventions
  431. from the Definition are carried straight over to the Kit.
  432.  
  433.   If you are primarily interested in executing Standard ML programs
  434. efficiently, the ML Kit is not the system for you! (It uses a lot of
  435. space and is very slow.) The Kit is intended as a tool box for those
  436. people in the programming language community who may want a
  437. self-contained parser or type checker for full Standard ML but do not
  438. want to understand the clever bits of a high-performance compiler. We
  439. have tried to write simple code and module interfaces; we have not
  440. paid any attention to efficiency.
  441.  
  442.   The documentation is around 100 pages long and is provided with the
  443. Kit. It explains how to build, run, read and modify the Kit. It also
  444. describes how typing of flexible records and overloading are handled
  445. in the Kit.
  446.  
  447.   The ML Kit is written by Nick Rothwell, David N. Turner, Mads Tofte
  448. and Lars Birkedal at Edinburgh and Copenhagen Universities.
  449.    
  450.   The ML Kit is available via anonymous ftp. Here is a sample dialog:
  451.  
  452.   ftp ftp.diku.dk              ftp ftp.dcs.ed.ac.uk
  453.   Name: anonymous              Name: anonymous
  454.   Password: <your loginname@host>      Password: <your loginname@host>
  455.   ftp> binary                  ftp> binary
  456.   ftp> cd diku/users/birkedal          ftp> cd export/ml/mlkit
  457.   ftp> get README              ftp> get README
  458.   ftp> get COPYING              ftp> get COPYING
  459.   ftp> get src.tar.Z              ftp> get src.tar.Z
  460.   ftp> get doc.tar.Z              ftp> get doc.tar.Z
  461.   ftp> get tools.tar.Z          ftp> get tools.tar.Z
  462.   ftp> get examples.tar.Z          ftp> get examples.tar.Z
  463.   ftp> bye                  ftp> bye
  464.  
  465. The file README contains installation instructions. Note that no
  466. binaries are distributed and that you must build these using either
  467. Standard ML of New Jersey, or Poly/ML.
  468.  
  469.  
  470. --------------------------------------------------------------------------
  471. 6. Unsupported SML/NJ Ports
  472.  
  473. This section describes various ports of SML/NJ (see section 5) 
  474. that are not directly supported by the NJ folks.  
  475.  
  476. MS-DOS/Windows?
  477. ---------------
  478. (From Dave MacQueen)
  479.  
  480. There is an MS-Windows/MSDOS implementation of Standard ML of New
  481. Jersey available by annonymous ftp on research.att.com, directory
  482. dist/ml/working/sml-386.  This port was done by Yngvi Guttesen at the
  483. Danish Technical University in Copenhagen, and it is based on version
  484. 0.75 of SML/NJ.  The distribution consists of the following four
  485. files.
  486.  
  487. -rw-rw-r--  1  dbm     other    417 Feb 16  1993 README
  488. -rw-rw-r--  1  dbm     other  51375 Feb  7  1992 doc.tar.Z
  489. -rw-rw-r--  1  dbm     other 749105 May  5  1992 mo.386.tar.Z
  490. -rw-rw-r--  1  dbm     other 851445 Feb  7  1992 src.tar.Z
  491.  
  492. This Windows port is rather delicate, and when we got it we had a lot
  493. of trouble getting it working here at Bell labs.  We tried several
  494. different machines and finally found one on which it would run (a
  495. Gateway 2000 with 16 MB of RAM), though even then it was not very
  496. robust or fast.  It seemed to be a problem of finding a machine with
  497. just the right memory management configuration.  I must admit that
  498. memory management under Windows is a black art that I am not familiar
  499. with, so I have no idea how to characterize the required memory
  500. configuration.
  501.  
  502. My conclusion is that the current Windows 3.1/MSDOS environment is so
  503. difficult that it would require a major additional investment to have
  504. a really useful port.  Guttesen did not have a 32 bit C compiler
  505. available, so he rewrote the runtime system in assember, which makes
  506. it difficult to modify his port.  An alternative is to wait for
  507. Windows NT (Win32) or OS/2 ports, which may be done in the coming
  508. months (a couple of people have independently been working on OS/2
  509. ports recently).  Another alternative is to look in directory pub/ml
  510. of ftp.dcs.ed.ac.uk, where there are a couple of (partial)
  511. implementations of SML that run on PCs.  A third alternative is to
  512. look into Xavier Leroy's CAML Light.  (Details of these are in the
  513. comp.lang.ml FAQ message.)
  514.  
  515. However, Guttesen's 386 code generator was used by Mark Leone of CMU
  516. as the basis for a port to Unix on Ix86 machines.  The current release
  517. of SML of New Jersey (0.93) incorporates Intel/Unix support for Mach
  518. (used at Carnegie-Mellon University), BSD386 (a product of BSDI?), and
  519. 386bsd (a free version of Unix for the PC).  There are also versions
  520. that run under Linux (available as part of the free Linux distribution)
  521. and SVR4, although we have not yet integrated the code supporting
  522. Linux and SVR4 into the distributed 0.93 runtime system.  Interest has
  523. been expressed in a port for SCO Unix, but, as far as we know, no one
  524. has done such a port.
  525.  
  526. Very recently Peter Bertelsen of the Technical University of Denmark
  527. has done a port to OS2, which is now available on research.att.com,
  528. directory dist/ml.
  529.  
  530. Linux?
  531. ------
  532. (Thanks to Ralf Reetz, Peter Su, and Mark Leone)
  533.  
  534. Various ftp sites that seem to carry SML/NJ version 0.93 for Linux:
  535.  
  536.     ftp.rz.uni-karlsruhe.de:/linux/mirror.tsx/
  537.  
  538.         binaries/usr.bin/njsml.93.bin.z
  539.         sources/usr.bin/njsml.93.linux.README
  540.         sources/usr.bin/njsml.93.linux.README.NEW
  541.         sources/usr.bin/njsml.93.linux.diffs.z
  542.         sources/usr.bin/njsml.93.src.tar.z
  543.  
  544.     ftp@tsx-11.mit.edu:/pub/linux/
  545.  
  546.            sources/usr.bin/njsml.93.src.tar.z
  547.  
  548.     ftp.dcs.glasgow.ac.uk?
  549.  
  550. From the README file:
  551.  
  552.              Standard ML of New Jersey
  553.     Version 0.93 for the i386/i486 running Linux, April 23, 1993
  554.  
  555.  
  556. __ WHAT
  557.     SML/NJ is a compiler for the functional programming language
  558.     Standard ML (SML). It is a fairly complete and robust
  559.     implementation of ML.
  560.  
  561. __ FILES
  562.     njsml.93.bin.z - gzip'd binary of njsml (no SourceGroup)
  563.     njsml-sg.93.bin.z - gzip'd binary of njsml with SourceGroup
  564.     njsml.93.src.tar.z - minimal sources for NJSML on Linux
  565.     njsml.93.mo.i386.z - you'll need these also to compile on Linux
  566.  
  567.     You can pick up additional tools and goodies from:
  568.  
  569.     research.att.com
  570.  
  571.     under the "ml" directory.
  572.  
  573. __ HISTORY
  574.  
  575.     This is a port of Standard ML of New Jersey (SML/NJ) to Linux. It
  576.     is based on the work of Mark Leone (mleone@cs.cmu.edu) who did
  577.     the port for i386/i486 machines. The current binary was compiled
  578.     using Linux 0.99.7a.  Shared lib 4.3.3.
  579.  
  580.     This port was done by Sanford Barr (sbarr@cs.sunysb.edu) based on
  581.         the original port of 0.91 by Hermano Moura (moura@dcs.glasgow.ac.uk)
  582.     and Andre Santos (andre@dcs.glasgow.ac.uk).
  583.  
  584. __ RECOMMENDED ENV
  585.  
  586.     16M of ram is suggested if you wish to do anything serious with
  587.     the system.  Also, a 386-40 or better would be helpful.
  588.  
  589.  
  590. __ KNOWN BUGS AND DEFICIENCIES
  591.  
  592.     1 Some minimal precision problems exist when a 387 emulator is
  593.       used.
  594.  
  595.     2 ML functions System.Directory.listDir and System.Directory.getWD
  596.       not working at the moment.
  597.  
  598. __ WHERE
  599.  
  600.     NJ-SML 0.93 should be available at most major Linux sites.  It
  601.     should also be available in:
  602.         sbcs.sunysb.edu:/pub/linux
  603.     by the time you are reading this.
  604.  
  605. OS/2:
  606. -----
  607. Standard ML of New Jersey (version 0.93) has been ported to PC's running OS/2.
  608. Signal handling is not implemented. This port has been implemented using Mark
  609. Leone's code generator for Intel 80386 and the Unix emulator emx, copyright of
  610. Eberhard Mattes. SML/NJ is copyright of AT&T Bell Laboratories.
  611. There is no warranty of any kind!
  612.  
  613. Requirements:
  614.  - IBM OS/2 version 2.x
  615.  - HPFS file system (long file names required)
  616.  - emx version 0.8g or later
  617.  - '.mo' files for i386
  618.  
  619. The port is available for anonymous ftp from research.att.com (in /dist/ml)
  620. and, in Europe, from ftp.id.dth.dk (in /pub/bertelsen):
  621.  
  622.    93.os2port.zip     Archived with Info-ZIP's Zip utility
  623.    93.os2port.tar.Z   Archived with GNU's tape archive utility
  624.    93.os2port.txt     Port announcement & installation guide
  625.  
  626. Please note that the .tar.Z and .zip version of the SML/NJ port are exactly
  627. alike and both contain a full source set (but no '.mo' files) for compiling 
  628. to OS/2 with emx/gcc (not included).
  629.  
  630. The i386 '.mo' archive (93.mo.i386.tar.Z) is available from research.att.com
  631. (in /dist/ml) and princeton.edu (in /pub/ml). The emx environment is available
  632. from various OS/2 related ftp sites, e.g. ftp-os2.cdrom.com.
  633.  
  634. A binary-only release of this SML/NJ port (no source, interactive system
  635. executable only) is also available for anonymous ftp from ftp-os2.cdrom.com.
  636.  
  637. If you have questions concerning this port, please send email to:
  638.  
  639. Peter Bertelsen  (c917023@id.dth.dk)
  640. Department of Computer Science, Technical University of Denmark
  641.  
  642. FreeBSD:
  643. --------
  644. SML/NJ is also available in source and binary format for FreeBSD from
  645. freebsd.cdrom.com:/pub/FreeBSD/packages/sml_src.tgz and sml_bin.tgz.
  646. The binary package includes EXene and CML as well.
  647.  
  648. --------------------------------------------------------------------------
  649. 5. Where can I find documentation on SML?
  650.  
  651. THE DEFINITION.
  652.  
  653. Robin Milner, Mads Tofte and Robert Harper
  654. The Definition of Standard ML
  655. MIT, 1990.
  656. ISBN: 0-262-63132-6
  657.  
  658. Robin Milner and Mads Tofte
  659. Commentary on Standard ML
  660. MIT, 1991
  661. ISBN: 0-262-63137-7
  662.  
  663. TEXTS.
  664.  
  665. Jeffrey D. Ullman
  666. Elements of ML Programming
  667. Prentice-Hall, 1993 (Oct. 15)
  668. ISBN: 0-13-184854-2
  669. (See Comp.Lang.ML archives, message from Ullman dated 22 Sep 1993 for
  670.  chapter headings.)
  671.  
  672. Rachel Harrison
  673. Abstract Data Types in Standard ML
  674. John Wiley & Sons, April 1993
  675. ISBN: 0-471-938440
  676.  
  677. Ake Wikstrom
  678. Functional Programming Using Standard ML
  679. Prentice Hall 1987
  680. ISBN: 0-13-331661-0
  681.  
  682. Chris Reade
  683. Elements of Functional Programming
  684. Addison-Wesley 1989
  685. ISBN: 0-201-12915-9
  686.  
  687. Lawrence C Paulson
  688. ML for the Working Programmer
  689. Cambridge University Press 1991
  690. ISBN: 0-521-39022-2
  691.  
  692. Stefan Sokolowski
  693. Applicative High Order Programming: The Standard ML perspective
  694. Chapman & Hall 1991
  695. ISBN: 0-412-39240-2     0-442-30838-8 (USA)
  696.  
  697. Ryan Stansifer
  698. ML Primer
  699. Prentice Hall, 1992
  700. ISBN 0-13-561721-9
  701.  
  702. Colin Myers, Chris Clack, and Ellen Poon
  703. Programming with Standard ML
  704. Prentice Hall, 1993
  705. ISBN 0-13-722075-8 (301pp)
  706.  
  707. The following report is available from the LFCS (Lorraine Edgar,
  708. lme@dcs.ed.ac.uk) and costs 5 pounds or 10 US dollars.  It covers all of
  709. Standard ML.  The report is also available via the World Wide Web off of
  710. http://www.cs.cmu.edu:8001/afs/cs.cmu.edu/project/fox/mosaic/HomePage.html.
  711. Alternatively, the report can be ftp'd from ftp.cs.cmu.edu as the file
  712. /afs/cs/project/fox/mosaic/intro-notes.ps.
  713.  
  714. Robert Harper
  715. Introduction to Standard ML
  716. LFCS Report Series  ECS-LFCS-86-14
  717. Laboratory for Foundations of Computer Science
  718. Department of Computer Science
  719. University of Edinburgh
  720. Nov. 1986 (revised Jan. 1989 by Nick Rothwell and Kevin Mitchell)
  721.  
  722. The following report is available from the LFCS (Lorraine Edgar,
  723. lme@dcs.ed.ac.uk) and costs 2.50 pounds or 5 US dollars for single
  724. copies and 1.50 pounds or 3 dollars when bought in bulk.  It includes
  725. an introduction to Standard ML and 3 lectures on the modules system.
  726.  
  727. Mads Tofte
  728. Four Lectures on Standard ML
  729. LFCS Report Series  ECS-LFCS-89-73
  730. Laboratory for Foundations of Computer Science
  731. Department of Computer Science
  732. University of Edinburgh
  733. March 1989
  734.  
  735. The following report is available from the LFCS (Lorraine Edgar,
  736. lme@dcs.ed.ac.uk) and is free.  It introduces Extended ML, a language
  737. for writing (non-executable) specifications of Standard ML programs and
  738. for formally developing Standard ML programs from such specifications.
  739.  
  740. Don Sannella
  741. Formal program development in Extended ML for the working programmer.
  742. LFCS Report Series  ECS-LFCS-89-102
  743. Laboratory for Foundations of Computer Science
  744. Department of Computer Science
  745. University of Edinburgh
  746. December 1989
  747. --------------------------------------------------------------------------
  748. 6. Where can I find library code?
  749.  
  750. The Edinburgh SML Library provides a consistent set of functions on the
  751. built-in types of the language and on vectors and arrays, and a few extras.
  752. It includes a "make" system and a consistent set of parsing and unparsing
  753. functions.  The library consists of a set of signatures with sample portable
  754. implementations, full documentation, and implementations for Poly/ML,
  755. Poplog ML and SML/NJ that use some of the non-standard primitives
  756. available in those systems.  It is distributed with Poly/ML, Poplog ML and
  757. Standard ML of New Jersey.  It is also available from the LFCS.
  758.  
  759. The library documentation is available as a technical report from the LFCS
  760. (Lorraine Edgar, lme@dcs.ed.ac.uk) and costs 5 pounds or 10 US dollars.
  761. The LaTeX source of the report is included with the library.
  762.  
  763. Dave Berry
  764. The Edinburgh SML Library
  765. LFCS Report Series  ECS-LFCS-91-148
  766. Laboratory for Foundations of Computer Science
  767. Department of Computer Science
  768. University of Edinburgh
  769. April 1991
  770.  
  771.  
  772. The SML/NJ Library is distributed with the SML of New Jersey compiler.
  773. It provides a variety of utilities such as 2-dimensional arrays, sorting,
  774. sets, dictionaries, hash tables, formatted output, Unix path name
  775. manipulation, etc.  The library compiles under SML/NJ but should
  776. be mostly portable to other implementations.
  777.  
  778. --------------------------------------------------------------------------
  779. 7. Theorem Provers and ML
  780.  
  781. (Collected by Paul Black, pblack@cs.berekeley.edu.  Thanks Paul!)
  782.  
  783. - LCF (Edinburgh LCF and Cambridge LCF)
  784.     * written in the original Edinburgh dialect of ML from which SML developed.
  785.  
  786.    "Logic and Computation: Interactive Proof with Cambridge LCF"
  787.     also by Lawrence C. Paulson.
  788.  
  789.  
  790. - Lego (LFCS, Edinburgh Univ., SML)
  791.     * originally developed in CAML
  792.     * latest version (5) now runs under SML/NJ 
  793.     * only higher-order resolution
  794.     * available via anon. ftp from ftp.dcs.ed.ac.uk:/pub/lego
  795.  
  796. - HOL90 (Konrad Slind, TU Munich)
  797.     * reimplementation of HOL in SML
  798.  
  799.     * freely available; ftp from Munich
  800.  
  801.     * HOL90 has lots of decision procedures, and lots of rewriting.
  802.     In general, HOL90 has LOTS of automated support.  But it
  803.     doesn't have dependent types (if one cares about those things).
  804.  
  805. - NuPrl (from Bob Constable`s group at Cornell)
  806.  
  807. - Isabelle (Lawrence C. Paulson, Cambridge Univ. )
  808.     * has rewriting, but not many decision procedures.  It does has
  809.     things like model elimination-based decision procedures.
  810.     * a generic automatic theorem prover i.e. you can program it to
  811.     the logic system/proof system you want.  Already has the
  812.     following subsystems already implemented:
  813.         i) FOL - first order logic
  814.         ii) HOL - higher order logic
  815.         iii) LCF - Logic of computable functions
  816.         iv) LK - Gentzen system LK
  817.         v) Modal - Modal logic systems T, S4, S43
  818.         vi) ZF - Zermelo-Fraenkel set theory
  819.     * ftp from <gannet.cl.cam.ac.uk>
  820.  
  821. - MERILL (Brian Matthews, U. of Glasgow & Rutherford Appleton Laboratory)
  822.     * written in standard ML
  823.     * a general purpose order-sorted equational reasoning system
  824.     * Allows the user to declare their own object language, allows
  825.     AC-rewriting and AC-unification of terms and equations, has
  826.     several completion algorithms, is built on a hierarchy of
  827.     types known as Order-Sorting, and allows the user to try
  828.     different termination methods.
  829.     * available via anonymous ftp from the University of Glasgow,
  830.     ftp address: ftp.dcs.glasgow.ac.uk (130.209.240.50)
  831.     * Brian Matthews, brian@dcs.glasgow.ac.uk or bmm@inf.rl.ac.uk
  832.  
  833. - FAUST (Karlsruhe)
  834.     * a HOL add-on written in ML.
  835.     * ftp from goethe.ira.uka.de (129.13.18.22)
  836.  
  837. - Alf
  838.     * written in SML
  839.     * only higher-order resolution
  840.  
  841. - Coq
  842.     * written in Caml-Light (but Caml-Light and SML are VERY similar)
  843.     * no serious automated reasoning subsystems (other than
  844.     higher-order resolution), but has a VERY nice package for
  845.     program verification.
  846.     * available via anon. ftp from ftp.inria.fr:/INRIA/coq/V5.8
  847.     * possible contact: Chet Murthy <murthy@cs.cornell.edu>
  848.  
  849. - ICLHOL/ProofPower (ICL Secure Systems)
  850.     * a commercial system using a reimplementation of HOL in SML
  851.     * contact ProofPower-server@win.icl.co.uk
  852.  
  853. - Lamdba/DIALOG (Abstract Hardware Ltd)
  854.     * a commercial tool written in Poly/ML, neither of which is free.
  855.  
  856. - Elf (Frank Pfenning, Carnegie Mellon Univ.)
  857.    * Elf is a higher-order logic programming language based on the LF
  858.     Logical Framework.
  859.    * Elf is not a theorem prover per-se, but is useful for specifying
  860.     and proving properties of programming languages, logics, and their
  861.     implementations.  A number of examples are provided with the
  862.     distribution.
  863.    * The Elf implementation is written in SML/NJ and should be easily
  864.         portable to other SML implementations.
  865.    * Elf can be ftp'd from alonzo.tip.cs.cmu.edu (128.2.209.194)
  866.     in the directory /afs/cs/user/fp/public.
  867.    * A bibliography and a collection of papers regarding LF and Elf
  868.         can be found in the directory /afs/cs/user/fp/public/elf-papers.
  869.    * There is an Elf mailing list.  Contact elf-request@cs.cmu.edu to join.
  870.    * For further information, contact Frank Pfenning (fp@cs.cmu.edu).
  871.  
  872. References
  873.    "ML for the Working Programmer" by Lawrence C. Paulson contains a
  874.     small first-order theorem prover.
  875.  
  876.     Paulson also has a good chapter on writing theorem provers in ML in
  877.     "Handbook of logic in computer science",
  878.     Edited by:  S. Abramsky, Dov M. Gabbay, and T.S.E. Maibaum.
  879.     Oxford : Clarendon Press, 1992-.
  880.     CALL#: QA76 .H2785 1992 
  881.  
  882.    
  883. Others
  884.     We have an automated theorm proving system here at the University
  885.     of Tasmania, but it is still under development, currently
  886.     riddled with bugs and has an obscure "input language"; aside
  887.     from those minor problems, it'd be perfect...
  888.     La Monte H. Yarroll <piggy@hilbert.maths.utas.edu.au>
  889.  
  890.     Edinburgh's Concurrency Workbench and Sussex's Process Algebra
  891.     Mauipulator are also ML systems of note, though neither are
  892.     interactive theorem provers.
  893.  
  894.  
  895. --------------------------------------------------------------------------
  896. 8. Miscellaneous
  897.  
  898. How do I write the Y combinator in SML without using a recursive
  899. definition (i.e. "fun" or "let rec")?
  900.  
  901.     datatype 'a t = T of 'a t -> 'a
  902.  
  903.     val y = fn f => (fn (T x) => (f (fn a => x (T x) a)))
  904.                          (T (fn (T x) => (f (fn a => x (T x) a))))
  905.  
  906. Where can I find an X-Windows interface to SML?
  907.  
  908.     Poly/ML, Poplog/ML, and SML/NJ all come with X-Windows interfaces.
  909.     See the appropriate entries under section 3.  In addition, Poly/ML
  910.     interfaces to the industry standard OSF/Motif toolkit.
  911.  
  912. How do I call a C function from SML/NJ?
  913.  
  914. See the file runtime/cfuns.c for example C functions that are in
  915. the runtime and callable from ML.  You have to enter the function
  916. into a table at the end of the file along with a string.  You use
  917. the function System.Unsafe.CInterace to look up the function, using
  918. the string as the key.  Note that you'll need to convert ML values
  919. to C representations and back.  You'll have to rebuild the compiler
  920. using makeml.
  921.  
  922. How do I get the emacs mode to work with Emacs version 19?
  923.  
  924. Add these three lines at the top of your `sml-init.el' file:
  925. - ----- BEGIN addition
  926. ; emacs 19 doesn't have `make-shell', which sml-shell needs, so get it
  927. ; when necessary.  12 Oct 1993 M-J. Dominus (mjd@saul.cis.upenn.edu)
  928. (autoload 'make-shell "make-shell" "Make and initialize shell buffer for SML." nil)
  929. - ----- END addition
  930.  
  931. They tell emacs to load the file `make-shell.el' when it needs to use
  932. the `make-shell' function.  
  933.  
  934. Then install this file as `make-shell.el' somewhere on your load path,
  935. probably in your emacs `site-lisp' directory:
  936.